<?php include('./application/views/header.php'); ?>

<table>
	<?php 
	$o = 1;
	foreach($clients as $c) { ?>
		<tr>
			<td>
				<?php echo form_open('loyaltyCard/process'); ?>
					<?php echo $c['client']; ?>
					<?php echo $c['email']; ?>
					<?php echo form_hidden('id', $c['id']); ?>
					<?php echo form_hidden('client', $c['client']); ?>
					<?php echo form_hidden('email', $c['email']); ?>
					<select name="promotion">
						<option>No Promotion</option>
						<?php
						
						
						foreach($promotions as $key => $p) {?>
							<option value="<?php echo $code[$key]; ?>"><?php echo $p; ?></option>
						<?php
						
						} ?>
					</select>
					<?php echo form_submit('mysubmit', 'Send'); ?>
				<?php echo form_close(); ?>
			</td>
		</tr>
	<?php
$o++;
	} ?>
</table>
<?php include('./application/views/footer.php'); ?>
	